package com.kedacom.freedomLabel.model;

/**
 * @author licheng
 * @since 2019/11/26 16:49
 */
public class DataControlResult<T> {

    public T data;
    public boolean result;
    public String errorMessage;

    public DataControlResult(T data) {
        this.result = true;
        this.data = data;
    }

    public DataControlResult(T data, String errorMessage) {
        this.result = false;
        this.errorMessage = errorMessage;
    }
}
